<script>
export default {
  name: "activityRule",
  props:  {
    activityRule: {
      type: String,
      default: {}
    }
  },
  data: () => {
    return {

    };
  },
  mounted() {

  },
}
</script>

<template>
  <view class="activity">
    <view class="activity_title">注意事项</view>
    <u-line color="#eeeeee"></u-line>
    <view class="activity_content">
      <u-parse :html="activityRule" :lazy-load="true" :show-with-animation="true"></u-parse>
      <!--<view v-for="(item,index) in activityRule" :key="index" class="activity_item">{{item}}</view>-->
    </view>
  </view>
</template>

<style scoped lang="scss">
.activity{
  margin-bottom: 30rpx;
  background: #FFFFFF;
  border-radius: 20rpx;
  .activity_title{
    font-weight: bold;
    font-size: 32rpx;
    color: #333333;
    padding: 20rpx;
  }
  .activity_content{
    padding: 20rpx;
    .activity_item{
      font-size: 26rpx;
      color: #666666;
      line-height: 50rpx;
      margin-bottom: 20rpx;
    }
  }
}
</style>